<?php

namespace App\Http\Queries;

use App\Models\VehicleSeries;
use Spatie\QueryBuilder\QueryBuilder;
use Spatie\QueryBuilder\AllowedFilter;

class VehicleSeriesQuery extends QueryBuilder
{
    public function __construct()
    {
        parent::__construct(VehicleSeries::query());
        $this->allowedFilters([
            AllowedFilter::exact('recommend'),
        ]);
        $this->allowedIncludes('vehicles');
        $this->defaultSort('order');
    }
}
